﻿using Ducu.BLL.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ducu.BLL.NHMap
{
    class MessageMap : EntityMap<Message>
    {
        public MessageMap()
        {
            Map(m => m.Content).Length(Constant.Length_Limitless);
            References(m => m.SendFrom).ForeignKey("FK_Message_SendFrom");
            Map(m => m.HasRead).Index("IX_Message_HasRead");
            References(m => m.SendTo).ForeignKey("FK_Message_SendTo");
            Map(m => m.Reply);
        }
    }
}
